<?php
namespace app\system\validate;

use think\Validate;

class Link extends Validate
{
    protected $rule = [
        'title' => 'require',
        'controller' => 'require',
        'action' => 'require',
        'ico' => 'require',
        'pid' => 'number',
    ];

    protected $message = [
        'title.require' => '链接名称不能为空!',
        'controller.require' => '控制器名称不能为空!',
        'action.require' => '方法名称不能为空!',
        'ico.require' => 'ICO图标不能为空!',
        'pid.number' => '上级ID参数错误!',
    ];
}